﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for MainPageUserAccess
/// </summary>
/// 
namespace CE.UserAccess
{
    public class MainPageUserAccess
    {
        private Int64 _accessid;
        private Int64 _refceuserid;
        private Int64 _providercompanyid;
        private Int64 _mainpageid;
        private Int32 accesslevel;
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        public MainPageUserAccess()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 AccessId
        {
            get { return _accessid; }
            set { _accessid = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public Int64 ProviderCompanyId
        {
            get { return _providercompanyid; }
            set { _providercompanyid = value; }
        }

        public Int64 MainPageId
        {
            get { return _mainpageid; }
            set { _mainpageid = value; }
        }

        public Int32 AccessLevel
        {
            get { return accesslevel; }
            set { accesslevel = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public void ClearFields()
        {
            _accessid = 0;
            _refceuserid = 0;
            _providercompanyid = 0;
            _mainpageid = 0;
            accesslevel = 0;
            _status = false;
            _createddate = CE.Global.General.GetUTCDateTime();
            _modifieddate = CE.Global.General.GetUTCDateTime();
        }

    }
}